﻿using A.M.Storage.Application;
using A.M.Storage.I_Infrastruecure;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using W.M.Materiel.Application.IServices;
using W.M.Materiel.Domain.Entity;
using W.M.Materiel.Infrastruecure.IRepository;

namespace W.M.Materiel.Application.Services
{
    public class Bom_list_categoryServices : BaseServices<bom_list_category, string>, IBom_list_categoryServices
    {
        private readonly IBom_list_categoryRepository bom_list_categoryRepository;

        public Bom_list_categoryServices(IBom_list_categoryRepository bom_list_categoryRepository) : base(bom_list_categoryRepository)
        {
            this.bom_list_categoryRepository = bom_list_categoryRepository;
        }

        /// <summary>
        /// 显示物料类别
        /// </summary>
        /// <returns></returns>
        public async Task< List<bom_list_category>> GetBom_List_Categories()
        {
            var list =await bom_list_categoryRepository.GetShowInforAsync();
            return list;
        }
    }
}
